package com.ty.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ty.common.annotation.Excel;
import com.ty.common.core.domain.BaseEntity;

/**
 * 驾校报名材料对象 enrollment
 *
 * @author
 * @date 2024-05-26
 */
public class Enrollment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 学员id */
    @Excel(name = "学员id")
    private Long studentId;

    /** 教练id */
    @Excel(name = "教练id")
    private Long coachId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthdate;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 住址 */
    @Excel(name = "住址")
    private String address;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String identityCardNumber;

    /** 驾照类型 A1、A2、A3、B1、B2、C1、C2、C3、C4、C5、D、E、F、M、N、P */
    @Excel(name = "驾照类型 A1、A2、A3、B1、B2、C1、C2、C3、C4、C5、D、E、F、M、N、P")
    private String licenseType;

    /** 审核状态： 0已提交 1审核通过 2审核不通过 */
    @Excel(name = "审核状态： 0已提交 1审核通过 2审核不通过")
    private Long state;

    private String coachName;

    public String getCoachName() {
        return coachName;
    }

    public void setCoachName(String coachName) {
        this.coachName = coachName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }
    public void setCoachId(Long coachId)
    {
        this.coachId = coachId;
    }

    public Long getCoachId()
    {
        return coachId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setBirthdate(Date birthdate)
    {
        this.birthdate = birthdate;
    }

    public Date getBirthdate()
    {
        return birthdate;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setIdentityCardNumber(String identityCardNumber)
    {
        this.identityCardNumber = identityCardNumber;
    }

    public String getIdentityCardNumber()
    {
        return identityCardNumber;
    }
    public void setLicenseType(String licenseType)
    {
        this.licenseType = licenseType;
    }

    public String getLicenseType()
    {
        return licenseType;
    }
    public void setState(Long state)
    {
        this.state = state;
    }

    public Long getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentId", getStudentId())
            .append("coachId", getCoachId())
            .append("name", getName())
            .append("gender", getGender())
            .append("birthdate", getBirthdate())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("address", getAddress())
            .append("identityCardNumber", getIdentityCardNumber())
            .append("licenseType", getLicenseType())
            .append("state", getState())
            .toString();
    }
}
